home *** CD-ROM | disk | FTP | other *** search
/ Disc to the Future 2 / Disc to the Future Part II Programmer's Reference (Wayzata Technology)(6013)(1992).bin / MAC / THINKC / 4_0 / LIFE6__ / PROTO / U / LIFE_STU.C < prev    next >
Text File  |  1991-08-16  |  2KB  |  71 lines

  1. /*  Life_StuffMenu                                                          Handle this menu list */
  2.  
  3. /* Unit name:  Life_StuffMenu.c   */
  4. /* Function:  Handle this specific menu list. */
  5. /* History: 8/16/91 Original by Prototyper 3.0   */
  6.  
  7.  
  8.  
  9. #include "PCommonLife6.h"    /* Common */
  10. #include "Common_Life6.h"    /* Common */
  11. #include "PUtils_Life6.h"    /* General Utilities */
  12. #include "Utils_Life6.h"    /* General Utilities */
  13.  
  14. #include "Life_StuffMenu.h"    /* This file */
  15.  
  16.  
  17. /* ======================================================= */
  18.  
  19.  
  20. /* Routine: Do_Life_StuffMenu */
  21. /* Purpose: Handle any menu items in this list specially. */
  22. /*         Get the main handler to ignore this menu item by changing */
  23. /*         SkipProcessing   to be TRUE. */
  24. /*         This routine is called before the main handler does anything */
  25. /*         when Doing_Pre is TRUE, it is called after the main handler */
  26. /*         again with Doing_Pre equal to FALSE. */
  27.  
  28. void Do_Life_StuffMenu( Doing_Pre, theItem, SkipProcessing)/* Handle this menu selection */
  29. Boolean    Doing_Pre;
  30. short    theItem;
  31. Boolean    *SkipProcessing;
  32. {
  33.  
  34.  
  35.         *SkipProcessing = FALSE;                                           /* Set to not skip the processing of this menu item */
  36.  
  37.         switch (theItem)                                                      /* Handle all commands in this menu list */
  38.         {
  39.  
  40.                 case MItem_Reset:
  41.                             if (Doing_Pre == TRUE)
  42.                                 {
  43.                                 RESET();    /* in PW_Life_4a.c */
  44.                                 }
  45.                             else
  46.                                 {
  47.                                 }
  48.                             break;
  49.  
  50.                 case MItem_Continuous:
  51.                             if (Doing_Pre == TRUE)
  52.                                 {
  53.                                 
  54.                                 }
  55.                             else
  56.                                 {
  57.                                 }
  58.                             break;
  59.  
  60.                 default:
  61.                             break;
  62.  
  63.         }                                                                         /* End of item case */
  64.  
  65. }                                                                                /* End of procedure */
  66.  
  67.  
  68. /* ======================================================= */
  69.  
  70.  
  71.